import { defineStore } from 'pinia'

/**
 * 定义 store
 */
const usePersonalStore = defineStore('shoppingcart', {
state() {
  return{
    cart:[] as Pipo[],
  }
},
actions:{
  //关注
  addtocat(payloday: Pipo){
    this.cart.push(payloday)
  }
}
})

export default usePersonalStore
